﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Ask.aspx.cs" Inherits="HFWebManage.Ask.Ask" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
    <link href="../css/main.css" type="text/css" rel="stylesheet">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script type="text/javascript" src="../ckeditor/ckeditor.js"></script>
    <script type="text/javascript">
        function ConfirmDel(el_message) {
            if (confirm(el_message)) {
                return true;
            }
            else {
                return false;
            }
        }
    </script>
</head>
<form id="theForm" runat="server">
<body bottommargin="0" leftmargin="0" topmargin="0" rightmargin="0">
    <br>
    <table class="usertableborder" cellspacing="1" cellpadding="3" width="96%" align="center"
        border="0">
        
        <tr>
            <th colspan="3">
                增加/修改   提问</th>
        </tr>
        <tr>
            <td class="usertablerow1" width="15%">标题 </td>
            <td class="usertablerow1">
                <asp:TextBox ID="tbTitle" runat="server" Width="216px"></asp:TextBox>
            </td>
            <td class="usertablerow1" width="25%"></td>
        </tr>
         <tr>
          <td class="usertablerow1">所属法律分类</td>
          <td class="usertablerow1">
             <asp:DropDownList ID="dropClassID" runat="server" AutoPostBack="True" 
                  Width="200" onselectedindexchanged="dropClassID_SelectedIndexChanged" >
                </asp:DropDownList>
          </td>
          <td class="usertablerow1" width="25%"></td>
        </tr>
        <tr>
          <td class="usertablerow1">所属法律小分类</td>
          <td class="usertablerow1">
             <asp:DropDownList ID="DropSmallClassID" runat="server" Width="200" >
                </asp:DropDownList>
          </td>
          <td class="usertablerow1" width="25%"></td>
        </tr>
        <tr>
            <td class="usertablerow1" width="15%">发布人 </td>
            <td class="usertablerow1">
                <asp:TextBox ID="tbUserID" runat="server" Width="216px"></asp:TextBox>
            </td>
            <td class="usertablerow1" width="25%"></td>
        </tr>
        <tr>
          <td class="usertablerow1">省份</td>
          <td class="usertablerow1">
             <asp:DropDownList ID="DropProvinceID" runat="server" AutoPostBack="True" 
                  onselectedindexchanged="DropProvinceID_SelectedIndexChanged" >
                </asp:DropDownList>
          </td>
          <td class="usertablerow1" width="25%"></td>
        </tr>
        <tr>
          <td class="usertablerow1">城市</td>
          <td class="usertablerow1">
             <asp:DropDownList ID="DropCityID" runat="server" AutoPostBack="True" >
                </asp:DropDownList>
          </td>
          <td class="usertablerow1" width="25%"></td>
        </tr>
        <tr>
            <td class="usertablerow1" width="15%">悬赏分数 </td>
            <td class="usertablerow1">
                <asp:TextBox ID="tbPoints" runat="server" Width="216px"></asp:TextBox>
            </td>
            <td class="usertablerow1" width="25%"></td>
        </tr>
        <tr>
            <td class="usertablerow1" width="15%">回答次数 </td>
            <td class="usertablerow1">
                <asp:TextBox ID="tbAnswerCount" runat="server" Width="216px"></asp:TextBox>
            </td>
            <td class="usertablerow1" width="25%"></td>
        </tr>
        <tr>
            <td class="usertablerow1">
                <div align="left">回复内容</div>
            </td>
            <td class="usertablerow1">
                <asp:TextBox ID="tbContent" runat="server" Height="99px" TextMode="MultiLine" 
                    Width="383px"></asp:TextBox>
                    <script type="text/javascript">
                        CKEDITOR.replace('<%= tbContent.ClientID %>',
                                 {
                                     filebrowserBrowseUrl: '../ckfinder/ckfinder.html',
                                     filebrowserImageBrowseUrl: '../ckfinder/ckfinder.html?Type=Images',
                                     filebrowserFlashBrowseUrl: '../ckfinder/ckfinder.html?Type=Flash',
                                     filebrowserUploadUrl: '../ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Files',
                                     filebrowserImageUploadUrl: '../ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images',
                                     filebrowserFlashUploadUrl: '../ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Flash'
                                 }
                                );  
                      </script>
            </td>
            <td class="usertablerow1">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="usertablerow1" width="15%">状态 </td>
            <td class="usertablerow1">
                <asp:TextBox ID="tbStatusID" runat="server" Width="216px"></asp:TextBox>
            </td>
            <td class="usertablerow1" width="25%"></td>
        </tr>
        <tr>
            <td class="usertablerow1">
                <div align="left">是否推荐到首页</div>
            </td>
            <td class="usertablerow1">
                <asp:RadioButtonList ID="rblisIndex" runat="server" 
                    RepeatDirection="Horizontal" RepeatLayout="Flow">
                    <asp:ListItem Value="1">是</asp:ListItem>
                    <asp:ListItem Selected="True" Value="0">否</asp:ListItem>
                </asp:RadioButtonList>
            </td>
            <td class="usertablerow1">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="usertablerow1">&nbsp;
                </td>
            <td class="usertablerow1">
                <div align="left">
                <asp:Button ID="Button1" runat="server" Text="保存" onclick="Button1_Click"/>
                    <asp:HiddenField ID="IDS" runat="server" />
                </div>
            </td>
            <td class="usertablerow1">&nbsp;</td>
        </tr>
        
    </table>
    <br />
</body>
</form>
</html>
